ExamPlay Dark Logo
Inicieu la sessió

Computer Science for IGCSE & O level - Programming (Section 12 - No. 11)

What is the outcome of the given code using count-controlled loop: ``` For number to 10 to 50 Step 5 Console.WriteLine(number) Next number ```
Prints numbers from 10 to 50 increasing by 5.
Prints a single number only.
The loop will not execute, as the end value is greater than start value.
It will print the value 50 only.

Explicació

The loop will iterate from 10 to 50, incrementing by 5 each time, printing the current value of the number.

Comentaris (0)

Inicieu sessió per comentar
Anunci
BrainBehindX Inc Logo
©2026; Desenvolupat per BrainBehindX Inc